package net.cdsunrise.com.resource.service.impl;

import net.cdsunrise.com.common.entity.SysUser;
import net.cdsunrise.com.resource.mapper.SysUserMapper;
import net.cdsunrise.com.resource.service.IUserService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author: LiuWei
 * @date: Create in 14:37 2018/05/14
 */
@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    SysUserMapper sysUserMapper;

    @Override
    public SysUser selectUserByUserName(String userName) {
        if(StringUtils.isBlank(userName)){
            return null;
        }
        return sysUserMapper.selectUserByUserName(userName);
    }
}
